<div class="page-content" >
            
    <div class="panel panel-default">
	<div class="panel-heading">
         <ul class="breadcrumb"> 
				<li><a href="<{:U('Subject/study_cards')}>">学习卡</a> </li>
				<li class="active">生成学习卡</li>
			</ul>
		</div>	
        <div class="panel-body">
            <form id="form" class="form-horizontal" enctype="multipart/form-data" action="<{:U('Subject/add_study_cards')}>" autocomplete="off" method="post" novalidate="novalidate">
                
		<input type="hidden" name="id" value="<{$data.id}>" />
                <div class="form-group">
                    <label class="col-sm-2 control-label">数量</label>
                    <div class="col-sm-7">
                        <input type="text" name="num" class="form-control" value="<{$data.num}>">
                    </div>
                    <div class="col-sm-3">
                    </div>
                </div>

                               

                 <div class="form-group">
                    <label class="col-sm-2 control-label">过期时间</label>
                    <div class="col-sm-7">
                     <input class="input-small datetimepicker" data-date="" data-date-format="yyyy-mm-dd" type="text"
                               name="exp_time" size="10" id="stime" value="<{$data.exp_time}>" autocomplete="off">
                    </div>
                    <div class="col-sm-3">
                    </div>
                </div>

                 <div class="form-group">
                    <label class="col-sm-2 control-label">url</label>
                    <div class="col-sm-7">
                    <input type="" name="" class="form-control" value="<php>echo HomeUrl</php>/User/get_study_cards/code/<{$data.code}>">
                 
                    </div>
                    <div class="col-sm-3">
                    </div>
                </div>
                 
                 
                 
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-7">
                        <button type="submit" class="btn btn-primary">保存</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
   

        </div>
 

 <script>
 
$(function(){
    $(".form-horizontal").bootstrapValidator({
        message: '您填入的值不合法',
        fields:{
            section: {
                message: '章节名称',
                validators: {
                    notEmpty: {
                        message: '章节名称不能为空'
                    },
                }
            },
			  

        }
    });
	
 
});
 </script>
     
 
</body>
</html>
